package com.deer.wms.inventory.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deer.wms.inventory.dao.InventoryAdjustDetailMapper;
import com.deer.wms.inventory.model.InventoryAdjustDetail;
import com.deer.wms.inventory.model.InventoryAdjustDetailCriteria;
import com.deer.wms.inventory.model.InventoryAdjustDetailDto;
import com.deer.wms.inventory.service.InventoryAdjustDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by ll on 2020/03/12.
 */
@Service
@Transactional
public class InventoryAdjustDetailServiceImpl extends ServiceImpl<InventoryAdjustDetailMapper, InventoryAdjustDetail> implements InventoryAdjustDetailService {

    @Autowired
    private InventoryAdjustDetailMapper inventoryAdjustDetailMapper;

    @Override
    public List<InventoryAdjustDetailDto> findList(InventoryAdjustDetailCriteria inventoryAdjustDetailCriteria){
        return inventoryAdjustDetailMapper.findList(inventoryAdjustDetailCriteria);
    }

    @Override
    public void deleteByBillNo(String billNo) {
        inventoryAdjustDetailMapper.deleteByBillNo(billNo);
    }

}
